{$define UNIGUI_VCL} // Comment out this line to turn this project into an ISAPI module

{$ifndef UNIGUI_VCL}
library
{$else}
program
{$endif}
  boxsrv;

uses
  {$ifndef UNIGUI_VCL}
  uniGUIISAPI,
  {$endif }
  Forms,
  ServerModule in 'ServerModule.pas' {UniServerModule: TUniGUIServerModule},
  MainModule in 'MainModule.pas' {UniMainModule: TUniGUIMainModule},
  uWinMain in 'win\uWinMain.pas' {WinMain: TUniForm},
  uMobMain in 'mob\uMobMain.pas' {MobMain: TUnimForm},
  uDmSys in 'common\uDmSys.pas' {DmSys: TDataModule},
  uWinBase in 'win\uWinBase.pas' {WinBase: TUniFrame};

{$R *.res}

{$ifndef UNIGUI_VCL}
exports
  GetExtensionVersion,
  HttpExtensionProc,
  TerminateExtension;
{$endif}

begin
{$ifdef UNIGUI_VCL}
  ReportMemoryLeaksOnShutdown := True;
  Application.Initialize;
  TUniServerModule.Create(Application);
  Application.Run;
{$endif}
end.
